package object;

public class ObjectDemo {
    public static void main(String[] args) {
        Point p=new Point(100,200);
        System.out.println(p);
        System.out.println(p.hashCode());//
        System.out.println(System.identityHashCode(p));
        System.out.println(p.toString());
        Point p2=new Point(100,200);
        System.out.println(p.equals(p2));
        StringBuilder builder1=new StringBuilder("物理");
        StringBuilder builder2=new StringBuilder("物理");
        System.out.println(builder2.equals(builder1));
        String s1=new String("物理");
        String s2=new String("物理");
        System.out.println(s1.equals(s2));
        int a=5;
        Integer b=12;
        Integer b2=12;
        System.out.println(b==b2);

    }

}
